home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6764 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1007 b 

  1. Path: WCUVAX1.WCU.EDU!ee7354
  2. From: "Edward R. Ewen, Jr." <ee7354@WCUVAX1.WCU.EDU>
  3. Newsgroups: comp.lang.c++
  4. Subject: World to Viewport Mapping - TC4.5- BGI
  5. Date: Thu, 8 Feb 1996 00:43:17 EST
  6. Organization: Western Carolina University
  7. Message-ID: <Pine.PMDF.3.91.960208003608.2537028B-100000@WCUVAX1.WCU.EDU>
  8. NNTP-Posting-Host: 152.30.1.1
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11.  
  12. I've started working with primitive graphics under Borland Turbo C++ 4.5 
  13. using the BGI library.  I've worked through the design of line primitives 
  14. and window to viewport mapping on a pixel to pixel basis.  My problem 
  15. comes when trying to use the viewports as included in BGI. 
  16.  
  17. I am able to define the viewports I wish to use, but have _NO_ idea how 
  18. to draw my picture such that is scaled to the current viewport. As I say, 
  19. I have an algorithm that does the mapping, but I can't use it with 
  20. anything but my own line DDA.
  21.  
  22. Could someone offer me a possible solution?  Email responses are preferred.
  23.  
  24.  
  25.  
  26.  
  27.